/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package view.contents.transition;

import view.contents.ImageTransitioner;

/**
 * 
 * @author Yang Wang <yang@digitalmenubox.com>
 */
public class TransitionFactory {

	public static ImageTransition getTransition(int i, ImageTransitioner it) {
		switch (i) {
		case -1:
			return null;
		case 0:
			return new FadeIn(it);
		case 1:
			return new CircleOut(it);
		case 2:
			return new BoxOut(it);
		case 3:
			return new GravityBouncer(it);
		case 4:
			return new GravityDropDown(it);
		case 5:
			return new SlideDown(it);
		case 6:
			return new SlideUp(it);
		case 7:
			return new SlideLeft(it);
		case 8:
			return new SlideRight(it);
		case 9:
			return new WipeDown(it);
		case 10:
			return new WipeUp(it);
		case 11:
			return new WipeLeft(it);
		case 12:
			return new WipeRight(it);
		case 13:
		default:
			return new RandomTransition();
		}
	}
}
